CC = gcc
CFLAGS = -Wall -g

all: executable1 executable2 executable3

executable1: 1.o
	$(CC) $(CFLAGS) -o executable1 1.o

executable2: 2.o
	$(CC) $(CFLAGS) -o executable2 2.o

executable3: 3.o
	$(CC) $(CFLAGS) -o executable3 3.o

1.o: 1.c
	$(CC) $(CFLAGS) -c 1.c

2.o: 2.c
	$(CC) $(CFLAGS) -c 2.c

3.o: 3.c
	$(CC) $(CFLAGS) -c 3.c

clean:
	rm -f *.o executable1 executable2 executable3
